package cn.iocoder.yudao.module.design.controller.admin.notes.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 项目笔记 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class NotesBaseVO {

    @Schema(description = "日记日期", required = true)
    @NotNull(message = "日记日期不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date date;

    @Schema(description = "项目id")
    private Long houseId;

    @Schema(description = "流程id")
    private Long flowId;

    @Schema(description = "节点id")
    private Long nodeId;

    @Schema(description = "日记信息")
    private String content;

    @Schema(description = "封面")
    private String imgUrl;

    @Schema(description = "状态")
    private String statusCd;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "标题")
    private String title;

}
